﻿using System.Configuration;

namespace Altairis.MailToolkit.Configuration {

    public class TransportElement : ConfigurationElement {

        [ConfigurationProperty("defaultProvider", IsRequired = true)]
        public string DefaultProvider {
            get { return (string)this["defaultProvider"]; }
            set { this["defaultProvider"] = value; }
        }

        [ConfigurationProperty("providers")]
        public ProviderSettingsCollection Providers {
            get { return (ProviderSettingsCollection)this["providers"]; }
            set { this["providers"] = value; }
        }
    }
}